# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=ttf-freefont
pkgver=20120503
pkgrel=4
pkgdesc='Set of free outline fonts covering the Unicode character set'
url='https://www.nongnu.org/freefont/'
license=('GPL')
arch=('any')
depends=('fontconfig' 'xorg-font-utils')
provides=('ttf-font')
validpgpkeys=('A0156C139D2DAA3B352E42CD506361DBA36FDD52')
source=("https://ftp.gnu.org/gnu/freefont/freefont-ttf-${pkgver}.zip"{,.sig}
        'conf.avail')
sha256sums=('7c85baf1bf82a1a1845d1322112bc6ca982221b484e3b3925022e25b5cae89af'
            'SKIP'
            '036c3aeac436ed1edb4c030593ea531ae81801121363f7f64fe08496393b4ec5')

install=install

package() {
	cd "${srcdir}/freefont-${pkgver}"
	install -d "${pkgdir}"/usr/share/fonts/TTF
	install -m644 *.ttf "${pkgdir}"/usr/share/fonts/TTF
	install -Dm644 ../conf.avail "${pkgdir}"/etc/fonts/conf.avail/69-freefont.conf
}
